package com.cskaoyan.mall.mapper;

import com.cskaoyan.mall.bean.Category;
import com.cskaoyan.mall.bean.vo.CategoryL1VO;
import com.cskaoyan.mall.bean.vo.CategoryLevelOne;
import com.cskaoyan.mall.bean.vo.GoodsCategoryVO;
import com.cskaoyan.mall.bean.vo.GoodsChildrenCategoryVO;


import java.util.List;

/**
 * @Author: dyj
 * @Date: 2021/1/10 19:09
 * @Description
 *
 */

public interface CategoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<CategoryLevelOne> selectAll();

    List<CategoryL1VO> selectLevelOne();

    List<GoodsCategoryVO> selectAllGoodsParentCategory();

    List<GoodsChildrenCategoryVO> selectAllGoodsChildrenCategory(GoodsCategoryVO goodsCategoryVO);
}
